package com.glorystone.ins.service.impl;

import com.glorystone.ins.dao.MemberMapper;
import com.glorystone.ins.domain.Member;
import com.glorystone.ins.service.MemberService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by wangwei on 2018/3/28.
 */
@Slf4j
@Service
public class MemberServiceImpl implements MemberService {

    @Autowired
    private MemberMapper memberMapper;

    @Override
    public List<Member> findByChannleId(Long channelId) {
        return memberMapper.findByChannleId(channelId);
    }

    @Override
    public void save(Member member) {
        memberMapper.save(member);
    }

    @Override
    public void saveList(List<Member> members) {
        memberMapper.saveList(members);

    }
}
